"""
while循环练习
要求：使用while循环求得1——100的和
"""
sum_num = 0
i = 1
while i <= 100 :
    i += 1
    sum_num += i
print(f"1-100累加的和为：{sum_num}")